﻿using System;

namespace Program11
{
    class Program
    {
        static void Main(string[] args)
        {
            //string pwd = "123456";
            //Console.WriteLine("密码明文，{0}", pwd);
            //var md5Pwd = Encryption.GetMd5(pwd);
            //Console.WriteLine("密码MD5密文，{0}",md5Pwd);

            string pwd = "123456 ";
            Console.WriteLine("密码明文，{0}", pwd);
            var md5Pwd = Encryption.GetMd5(pwd);
            Console.WriteLine("密码MD5密文，{0}", md5Pwd);
             
            //string pwd1 = "123456";
            Console.WriteLine("二次加密明文，{0}", md5Pwd);
            var sHAPwd = Encryption.GetSHAMD5(md5Pwd);
            Console.WriteLine("密码sHA密文，{0}", sHAPwd);

            string pwd1 = "123456";
            Console.WriteLine("密码明文:{0}", pwd1);
            var enPwd1 = Encryption.GetEncryptString(pwd1);
            Console.WriteLine("密文:{0}", enPwd1);

        }
    }
}
